package org.jypj.dev.model;

import com.google.gson.Gson;

/**
 * @author chenyu
 */
public class UserWork implements java.io.Serializable, Cloneable {

    private static final long serialVersionUID = 1L;

    private String id; // 主键ID
    private String loginId; // 登陆信息表ID
    private String workId; // 工序ID
    private String trainWorkId; // 车次工序表ID
    private String workParentId;// 工序父ID
    private String trainCode; // 车次
    private String beginTime;// 工序开始时间
    private String finishTime;// 工序完成的时间
    private int workStatus;//工序状态： 0、未开始 1、进行中 2、正常完成 3、提前完成 4、推迟完成 其中未开始不需要调用接口


    // ----以下是不与数据库对应需要关联查询出来 放入缓存的数据
    private int currentNum;//当前数量
    private int timeSpan;// 时间间隔
    private String workName;// 工序名称
    private int workType;// 工序类型 0表示NFC 1表示拍照
    private String nfcPlace;// NFC位置
    private String startTime;// 开始时间
    private String endTime;// 结束时间
    private int catalogDepth;// 目录深度
    private String tableName;// 表名
    private int isCatelog;// 功能或者目录
    private String workPlanTime;//工序计划时间
    private int score;//得分
    private String beginTimeShow;//用来显示的开始时间
    private String finishTimeShow;//用来显示的完成时间
    //---得分统计
    private int numLimitOne; // 未完成扣分分值
    private int numScoreOne; // 提前完成扣分分值
    private int timeLimitOne; // 扣分时间区间第一个值 --功能
    private int timeLimitTwo; // 扣分时间区间第二个值--功能
    private int timeScoreOne; // 时间未到扣分分值 --功能
    private int timeScoreTwo; // 在区间内扣分分值--功能
    private int timeScoreThree; // 时间超过扣分分值--功能

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginId() {
        return this.loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getWorkId() {
        return this.workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getTrainWorkId() {
        return this.trainWorkId;
    }

    public void setTrainWorkId(String trainWorkId) {
        this.trainWorkId = trainWorkId;
    }

    public String getTrainCode() {
        return this.trainCode;
    }

    public void setTrainCode(String trainCode) {
        this.trainCode = trainCode;
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public String getWorkName() {
        return workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    public String getWorkParentId() {
        return workParentId;
    }

    public void setWorkParentId(String workParentId) {
        this.workParentId = workParentId;
    }

    public int getWorkType() {
        return workType;
    }

    public void setWorkType(int workType) {
        this.workType = workType;
    }

    public String getNfcPlace() {
        return nfcPlace;
    }

    public void setNfcPlace(String nfcPlace) {
        this.nfcPlace = nfcPlace;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public int getTimeSpan() {
        return timeSpan;
    }

    public void setTimeSpan(int timeSpan) {
        this.timeSpan = timeSpan;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public int getIsCatelog() {
        return isCatelog;
    }

    public void setIsCatelog(int isCatelog) {
        this.isCatelog = isCatelog;
    }

    public int getCatalogDepth() {
        return catalogDepth;
    }

    public void setCatalogDepth(int catalogDepth) {
        this.catalogDepth = catalogDepth;
    }

    public String getWorkPlanTime() {
        return workPlanTime;
    }

    public void setWorkPlanTime(String workPlanTime) {
        this.workPlanTime = workPlanTime;
    }

    public int getCurrentNum() {
        return currentNum;
    }

    public void setCurrentNum(int currentNum) {
        this.currentNum = currentNum;
    }

    public int getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(int workStatus) {
        this.workStatus = workStatus;
    }


    public int getNumLimitOne() {
        return numLimitOne;
    }

    public void setNumLimitOne(int numLimitOne) {
        this.numLimitOne = numLimitOne;
    }

    public int getNumScoreOne() {
        return numScoreOne;
    }

    public void setNumScoreOne(int numScoreOne) {
        this.numScoreOne = numScoreOne;
    }

    public int getTimeLimitOne() {
        return timeLimitOne;
    }

    public void setTimeLimitOne(int timeLimitOne) {
        this.timeLimitOne = timeLimitOne;
    }

    public int getTimeLimitTwo() {
        return timeLimitTwo;
    }

    public void setTimeLimitTwo(int timeLimitTwo) {
        this.timeLimitTwo = timeLimitTwo;
    }

    public int getTimeScoreOne() {
        return timeScoreOne;
    }

    public void setTimeScoreOne(int timeScoreOne) {
        this.timeScoreOne = timeScoreOne;
    }

    public int getTimeScoreTwo() {
        return timeScoreTwo;
    }

    public void setTimeScoreTwo(int timeScoreTwo) {
        this.timeScoreTwo = timeScoreTwo;
    }

    public int getTimeScoreThree() {
        return timeScoreThree;
    }

    public void setTimeScoreThree(int timeScoreThree) {
        this.timeScoreThree = timeScoreThree;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getBeginTimeShow() {
        return beginTimeShow;
    }

    public void setBeginTimeShow(String beginTimeShow) {
        this.beginTimeShow = beginTimeShow;
    }

    public String getFinishTimeShow() {
        return finishTimeShow;
    }

    public void setFinishTimeShow(String finishTimeShow) {
        this.finishTimeShow = finishTimeShow;
    }

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }

}